package com.example.demo.config;

import com.example.demo.config.ben.AliDaYu;
import com.example.demo.config.ben.ImgUpload;
import com.example.demo.config.ben.Qiniu;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/*
 * @Author:大力王
 * @Date:2024/6/3-03-12:46
 * 开始了
 */
@Data
@Component
@PropertySource("classpath:application-dev.yml")
@ConfigurationProperties(prefix = "shop")
public class ShopBasicConfig {
    /**
     * 七牛云的配置信息
     */
    private Qiniu qiniu;

    /**
     * 阿里大鱼短信平台
     */
    private AliDaYu aLiDaYu;

    /**
     * 用于加解密token的密钥
     */
    private String tokenAesKey;

    /**
     * 本地文件上传配置
     */
    private ImgUpload imgUpload;
}
